import Vue from "vue";
import Router from "vue-router";
import Layout_library from '@/layout/library/index.vue'
import homeIcon from '@/assets/image_library/menu/home.png'
import fileIcon from '@/assets/image_library/menu/file.png'
import groupIcon from '@/assets/image_library/menu/group.png'
import homeIconactive from '@/assets/image_library/menu/homeActive.png'
import fileIconactive from '@/assets/image_library/menu/fileActive.png'
import groupIconactive from '@/assets/image_library/menu/groupActive.png'
Vue.use(Router);

export const library_Routes = [
  {
    path: "",
    hidden: true,
    redirect: "/homePage",
    component: Layout_library,
    children: [
      {
        path: "/homePage",
        component: () => import("@/views/library_homePage/index.vue"),
        name: "HomePage",
        meta: { title: "首页", icon: homeIcon ,activeIcon: homeIconactive},
      },
    ],
  },
  {
    path: "",
    hidden: true,
    component: Layout_library,
    redirect: "",
    children: [
      {
        path: "/filePage",
        component: () => import("@/views/library_filePage/index.vue"),
        name: "filePage",
        meta: { title: "传输", icon: fileIcon,activeIcon: fileIconactive},
      }
    ]
  },
  {
    path: "",
    hidden: true,
    component: Layout_library,
    redirect: "",
    children: [
      {
        path: "/groupPage",
        component: () => import("@/views/library_groupPage/index.vue"),
        name: "groupPage",
        meta: { title: "群组", icon: groupIcon,activeIcon: groupIconactive},
      }
    ]
  },
];

